<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div>
            <div class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </div>
            <div class="mc-m">
                <div class="navToggle"></div>
            </div>
            <div class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="交易资金记录管理">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                
                                <div class="toolbor-module search">
                    					<input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                				</div>
                				
                				<div class="toolbor-module search">
					                  <div class="formTit">交易类型：</div>
					                   <div class="select-box" id="tradeType">
					                        <div class="tag-select">全部</div>
					                        <ul class="tag-options">
					                           <li data-value="">全  部</li>
					                           <li data-value="101">申购</li>
					                           <li data-value="102">APP申购</li>
					                           <li data-value="103">WAP申购</li>
					                           <li data-value="104">充值</li>
					                           <li data-value="105">一分钱银行卡校验</li>
					                           <li data-value="111">自动还款</li>
					                           <li data-value="112">借款提现</li>
					                           <li data-value="113">奖励提现</li>
					                           <li data-value="114">奖励提现</li>
					                           <li data-value="201">借款入账</li>
					                           <li data-value="202">借款支出</li>
					                           <li data-value="203">借款手续费入账</li>
					                           <li data-value="204">借款手续费支出</li>
					                           <li data-value="205">技术服务费入账</li>
					                           <li data-value="206">技术服务费支出</li>
					                           <li data-value="207">红包使用支出</li>
					                           <li data-value="999">其他</li>
					                        </ul>
					                    </div>
					            </div>
                				
                                <div class="toolbor-module search">
					                  <div class="formTit">支付类型：</div>
					                   <div class="select-box" id="payType">
					                        <div class="tag-select">全部</div>
					                        <ul class="tag-options">
					                           <li data-value="">全  部</li>
					                           <li data-value="1">收入</li>
					                           <li data-value="2">支出</li>
					                           <li data-value="3">转账</li>
					                        </ul>
					                    </div>
					            </div>
					                
                             	<div class="toolbor-module search">
                                <div class="formTit">发起方用户名：</div>
                                    <input type="text" name="fromUserName" id="fromUserName" value="请输入用户名" class="search-value">
                                </div>
                                
                                <div class="toolbor-module search">
                                <div class="formTit">接收方用户名：</div>
                                    <input type="text" name="toUserName" id="toUserName" value="请输入用户名" class="search-value">
                                </div>
                             	
                                 <div class="toolbor-module search">
                                    <div class="formTit">记录时间：</div>
                                    <input class="_search-value" name="startDate" id="startDate" value="" onclick="change_picktime()"/>
                                    <div class="formTit"> 到 </div>
                                    <input class="_search-value" name="endDate" id="endDate" value=""  onclick="change_picktime()"/>
                                </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>序号</td>
                                            <td>发起方用户名</td>
                                            <td>接收方用户名</td>
                                            <td>交易类型</td>
                                            <td>支付类型</td>
                                            <td>交易金额</td>
                                            <td>账户余额</td>
                                            <td>记录时间</td>
                                            <td>备注</td>
                                        </tr>
                                        <#if list?? && (list?size > 0)> 
                                        	<#list list as obj>
                                            <tr class="s">
                                                <td>${obj.id?c}</td>
	                                            <td>${obj.fromUser.userName!''}</td>
	                                            <td>${obj.toUser.userName!''}</td>
	                                            <td>
	                                            <#if obj.tradeType == 101>
	                                            	申购
	                                            <#elseif obj.tradeType == 102>
	                                            	APP申购
	                                            <#elseif obj.tradeType == 103>
	                                            	WAP申购
	                                            <#elseif obj.tradeType == 104>
	                                            	充值
	                                            <#elseif obj.tradeType == 105>
	                                            	一分钱银行卡校验
	                                            <#elseif obj.tradeType == 111>
	                                            	自动还款
	                                            <#elseif obj.tradeType == 112>
	                                            	借款提现
	                                            <#elseif obj.tradeType == 113>
	                                            	奖励提现
	                                            <#elseif obj.tradeType == 114>
	                                            	奖励提现
	                                            <#elseif obj.tradeType == 201>
	                                            	借款入账
	                                            <#elseif obj.tradeType == 202>
	                                            	借款支出
	                                            <#elseif obj.tradeType == 203>
	                                            	借款手续费入账
	                                            <#elseif obj.tradeType == 204>
	                                            	借款手续费支出
	                                            <#elseif obj.tradeType == 205>
	                                            	技术服务费入账
	                                            <#elseif obj.tradeType == 206>
	                                            	技术服务费支出
	                                            <#elseif obj.tradeType == 207>
	                                            	红包使用支出
	                                            <#elseif obj.tradeType == 999>
	                                            	其他
	                                            <#else>
	                                           		其他
	                                            </#if>
	                                            </td>
	                                            <td>
	                                            	<#if obj.payType==1>
	                                            		收入
	                                            	<#elseif obj.payType==2>
	                                            		支出
	                                            	<#elseif obj.payType==3>
	                                            		转账
	                                            	<#else>
	                                            		默认
	                                            	</#if>
	                                            </td>
	                                            <td>${obj.tradeMoney?c}</td>
	                                            <td>${obj.balance?c}</td>
	                                            <td>${obj.addTime!''}</td>
	                                            <td>${obj.remark!''}</td>
                                            </tr>
                                       	 	</#list> 
                                        </#if>
                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container s_formPage">
                                        <#import "../../common/page.html" as pager>
                                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->

                                <script type="text/javascript">
                                    var url='tradeFundsRecord.html?search=true';
                                    function sousuo(){
                    					var sou = "";
                    					var fromUserName = $("#fromUserName").val();
                    					if (fromUserName!=""&&fromUserName!="请输入用户名"){
                    						sou += "&fromUserName="+fromUserName;
                    					}
                    					var toUserName = $("#toUserName").val();
                    					if (toUserName!=""&&toUserName!="请输入用户名"){
                    						sou += "&toUserName="+toUserName;
                    					}
                    				
                   					    var startDate = $("#startDate").val();
                                       	var endDate = $("#endDate").val();
                                        if (startDate!=null){
                                            sou += "&startDate="+startDate;
                                        }
                                        if (endDate!=null){
                                            sou += "&endDate="+endDate;
                                        }
                                        
                                        var tradeType = $("#tradeType").find(".open-selected").attr("data-value");
                                        if(tradeType!=null&&tradeType!=""&&tradeType!="undefine"){
                                        	sou += "&tradeType="+tradeType;
                                        }
                                        var payType = $("#payType").find(".open-selected").attr("data-value");
                                        if(payType!=null&&payType!=""&&payType!="undefine"){
                                        	sou += "&payType="+payType;
                                        }
                    					if (sou!=""){
                    							location.href=url+sou;
                    						}
                    					}
                              
                                </script>
                            </div>

            </div>
        </div>
        <div>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </div>
    </div>

    </body>
</html>
<#include "../jsPage.html">
